package c.j.a.d.b.d;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import c.j.a.d.b.n.y;

/* compiled from: IChunkCntAidlCalculator */
public interface s extends IInterface {

    /* compiled from: IChunkCntAidlCalculator */
    public static abstract class a extends Binder implements s {
        public static final /* synthetic */ int a = 0;

        /* compiled from: IChunkCntAidlCalculator */
        public static class a implements s {
            public IBinder a;

            public a(IBinder iBinder) {
                this.a = iBinder;
            }

            public int a(long j) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IChunkCntAidlCalculator");
                    obtain.writeLong(j);
                    this.a.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public IBinder asBinder() {
                return this.a;
            }
        }

        public a() {
            attachInterface(this, "com.ss.android.socialbase.downloader.depend.IChunkCntAidlCalculator");
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.ss.android.socialbase.downloader.depend.IChunkCntAidlCalculator";
            if (i == 1) {
                parcel.enforceInterface(str);
                i = ((y) this).b.a(parcel.readLong());
                parcel2.writeNoException();
                parcel2.writeInt(i);
                return true;
            } else if (i != 1598968902) {
                return super.onTransact(i, parcel, parcel2, i2);
            } else {
                parcel2.writeString(str);
                return true;
            }
        }
    }

    int a(long j) throws RemoteException;
}
